package com.yanqu.road.server.cmd.banquet.party;

import com.yanqu.road.pb.banquet.CrossBanquetProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.CrossProtocol;
import com.yanqu.road.server.protocol.GameProtocol;

@Cmd(code = GameProtocol.S_BANQUET_ENTER_NEXT,desc = "下一场盛宴")
public class NextFeastPartyCmd extends AbstractCommand {
    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        CrossBanquetProto.BanquetEnterNextReq req = CrossBanquetProto.BanquetEnterNextReq.parseFrom(packet.getBytes());
        player.sendPacket(CrossProtocol.C_CROSS_NEXT_FEAST_PARTY, req.toBuilder());
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
